<template>
    <div>
        点击了{{ count }}次
        <button @click="handleClick">click</button>
    </div>
</template>

<script>
export default {
    emits: ['click'],
    props: {
        count: {
            type: Number,
        },
    },
    methods: {
        handleClick () {
            this.$emit('click', this.count + 1);
        },
    },
};
</script>

<style>

</style>
